package by.gusto.afisha.db;

import android.content.Context;

import com.j256.ormlite.android.apptools.OpenHelperManager;

public class HelperFactory {

	private static DatabaseHelper sDatabaseHelper;
	   
	public static DatabaseHelper GetHelper(){
        return sDatabaseHelper;
    }
    public static void SetHelper(Context context){
    	sDatabaseHelper = OpenHelperManager.getHelper(context, DatabaseHelper.class);
    }
    public static void ReleaseHelper(){
        OpenHelperManager.releaseHelper();
        sDatabaseHelper = null;
    }
}
